package com.ziroom.zrapl.services.demo.proxy;

import com.alibaba.dubbo.config.annotation.Service;
import com.ziroom.zrapl.services.demo.api.inner.DemoService;
import com.ziroom.zrapl.services.demo.service.DemoServiceImpl;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by cuiyuhui on 2017/4/19.
 */
@Service
@Component("demoServiceProxy")
public class DemoServiceProxy implements DemoService {

    @Resource(name="demoServiceImpl")
    private DemoServiceImpl demoServiceImpl;

    public String sayHello(String name) {
        return demoServiceImpl.sayHello(name);
    }
}
